//
//  PushAnimation.m
//  MyPage
//
//  Created by Mao-MacPro on 15/3/12.
//  Copyright (c) 2015年 Mao-MacPro. All rights reserved.
//

#import "PushAnimation.h"

@implementation PushAnimation
+(CATransition *)cubeFromRight
{
    CATransition *  tran = [CATransition animation];
    tran.type = @"cube";
    tran.subtype = kCATransitionFromRight;
    tran.duration = 0.4;
//    tran.delegate = self;
    return  tran;
}

+(CATransition *)cubeFromLeft
{
    CATransition *  tran = [CATransition animation];
    tran.type = @"cube";
    tran.subtype = kCATransitionFromLeft;
    tran.duration = 0.4;
//    tran.delegate = self;
    return  tran;
}
+(CATransition *)pageCurlFromRight
{
    CATransition *  tran = [CATransition animation];
    tran.type = @"pageCurl";
    tran.subtype = kCATransitionFromRight;
    tran.duration = 0.5;
//    tran.delegate = self;
    return  tran;
}
+(CATransition *)pageCurlFromLeft
{
    CATransition *  tran = [CATransition animation];
    tran.type = @"pageCurl";
    tran.subtype = kCATransitionFromLeft;
    tran.duration=0.5;
//    tran.delegate=self;
    return  tran;
}
+(CATransition *)oglFlipFromLeft
{
    CATransition *  tran=[CATransition animation];
    tran.type = @"oglFlip";
    tran.subtype = kCATransitionFromLeft;
    tran.duration=0.5;
//    tran.delegate=self;
    return  tran;
}
+(CATransition *)oglFlipFromRight
{
    CATransition *  tran=[CATransition animation];
    tran.type = @"oglFlip";
    tran.subtype = kCATransitionFromRight;
    tran.duration=0.5;
//    tran.delegate=self;
    return  tran;
}
+(CATransition *)MoveInFromLeft
{
    CATransition *  tran=[CATransition animation];
    tran.type = kCATransitionMoveIn;
    tran.subtype = kCATransitionFromLeft;
    tran.duration=0.3;
//    tran.delegate=self;
    return  tran;
}
+(CATransition *)MoveInFromRight
{
    CATransition *  tran=[CATransition animation];
    tran.type = kCATransitionMoveIn;
    tran.subtype = kCATransitionFromRight;
    tran.duration=0.3;
//    tran.delegate=self;
    return  tran;
}
@end
